package com.better.common.exception;

/**
 * Created by Administrator on 2017/12/14.
 * 错误枚举类
 */
public enum ExceptionEnum {
    SUCCESS("200", "请求成功"),
    USER_CHOICE("201","请求成功！且操作失败。"),
    WEAK_NET_WORK("-1", "网络异常，请稍后重试"),
    PASSWORD_ERROR("10001", "用户名或密码错误"),
    UNKNOW_ERROR("-1", "未知错误"),
    USER_NOT_FIND("-101", "用户不存在"),
    PARAMETER_ERROR("10101", "参数错误"),
    ILLEGAL_ARGUMENT("10102","参数不合法"),
    CREATEEXAM_ERROR("10103","创建考试异常"),
    USER_NOT_LOGIN("10002","登录超时请重新登录");
    private String code;
    private String msg;

    ExceptionEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
